home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9203.ARJ
/
1003020A
< prev
next >
Wrap
Text File
|
1992-06-02
|
380b
|
24 lines
/* convert infix notation to postfix notation */
#include <stdio.h>
main()
{
char infix_str[200];
char postfix_str[200];
void intopost(const char *infix, char *postfix);
while (1) {
printf("Enter infix: ");
if (gets(infix_str) == NULL)
break;
intopost(infix_str, postfix_str);
printf(" postfix: %s\n", postfix_str);
}
return 0;
}